#define _CRT_SECURE_NO_WARNINGS
#include "list.c"

void printList(ListNode* head){

	ListNode* cur = head;
	while (cur->next != NULL) {
		printf("%d->",cur->data);
		cur = cur->next;	
	}
	printf("NULL\n");
	return;
}